﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AbetEvaluation.Master" AutoEventWireup="true"
	CodeBehind="TakeOutcome.aspx.cs" Inherits="AbetEvaluation.TakeOutcome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>ABET Evaluation - Take Outcome</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:Panel ID="pnlTakeOutcome" runat="server" Width="700px">
		<table>
			<tr>
				<td>
					<asp:GridView ID="gvQuestions" runat="server" AutoGenerateColumns="False" CellPadding="4"
						DataSourceID="gvQuestionsDataSource" ForeColor="#333333" GridLines="None" Width="700px"
						DataKeyNames="QuestionID,Answer,Points">
						<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
						<Columns>
							<asp:BoundField DataField="QuestionID" HeaderText="QuestionID" Visible="False" />
							<asp:BoundField DataField="QuestionText" HeaderText="Question">
								<HeaderStyle HorizontalAlign="Left" />
							</asp:BoundField>
							<asp:TemplateField HeaderText="Answer">
								<ItemTemplate>
									<asp:RadioButton ID="radioYes" runat="server" Text="Yes" GroupName="answerGroup" />
									&nbsp;
									<asp:RadioButton ID="radioNo" runat="server" Text="No" GroupName="answerGroup" />
								</ItemTemplate>
								<HeaderStyle HorizontalAlign="Center" Width="110px" />
								<ItemStyle HorizontalAlign="Center" Width="110px" />
							</asp:TemplateField>
							<asp:BoundField DataField="Answer" HeaderText="Answer" Visible="False" />
							<asp:BoundField DataField="Points" HeaderText="Points" Visible="False" />
						</Columns>
						<EditRowStyle BackColor="#999999" />
						<EmptyDataTemplate>
							No questions for the selected outcome.
						</EmptyDataTemplate>
						<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
						<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
						<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
						<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
						<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
						<SortedAscendingCellStyle BackColor="#E9E7E2" />
						<SortedAscendingHeaderStyle BackColor="#506C8C" />
						<SortedDescendingCellStyle BackColor="#FFFDF8" />
						<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
					</asp:GridView>
					<asp:ObjectDataSource ID="gvQuestionsDataSource" runat="server" SelectMethod="GetQuestions"
						TypeName="AbetEvaluation.Business.Questions" OnSelecting="gvQuestionsDataSource_Selecting"
						OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
				</td>
			</tr>
			<tr>
				<td align="right">
					<asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="Clear" Width="120px" />
					&nbsp;
					<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"
						Width="120px" />
				</td>
			</tr>
		</table>
	</asp:Panel>
	<asp:Label ID="lblDebug" runat="server"></asp:Label>
</asp:Content>
